
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.EmpWorkCalendar;

public interface EmpWorkCalendarDao extends Dao {

    /**
     * Retrieves all of the empWorkCalendars
     */
    public List getEmpWorkCalendars(EmpWorkCalendar empWorkCalendar);

    /**
     * Gets empWorkCalendar's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the empWorkCalendar's id
     * @return empWorkCalendar populated empWorkCalendar object
     */
    public EmpWorkCalendar getEmpWorkCalendar(final Long id);

    /**
     * Saves a empWorkCalendar's information
     * @param empWorkCalendar the object to be saved
     */    
    public void saveEmpWorkCalendar(EmpWorkCalendar empWorkCalendar);

    /**
     * Removes a empWorkCalendar from the database by id
     * @param id the empWorkCalendar's id
     */
    public void removeEmpWorkCalendar(final Long id);
    
    public List getEmpWorkCalendarsByStartEndDateWorkTypeId(final String empno, final String startdate, final String enddate, final String worktypeid);
   
    public List getEmpWorkCalendarsByStartEndDate(final String empno, final String startdate, final String enddate);

}

